package models

import (
	"time"
)

type DingNovels struct {
	Id          int       `xorm:"not null pk autoincr INT(10)"`
	CreatedAt   time.Time `xorm:"TIMESTAMP"`
	UpdatedAt   time.Time `xorm:"TIMESTAMP"`
	Name        string    `xorm:"not null CHAR(20)"`
	Author      string    `xorm:"not null CHAR(50)"`
	Img         string    `xorm:"not null VARCHAR(255)"`
	Description string    `xorm:"not null VARCHAR(255)"`
	Status      int       `xorm:"not null default 0 TINYINT(4)"`
	ResourceUrl string    `xorm:"not null VARCHAR(255)"`
	Rule        string    `xorm:"not null VARCHAR(255)"`
}

type TActivityPub struct {
	Id         int    `xorm:"not null pk autoincr INT(10)"`
	User       string `xorm:"not null VARCHAR(64)"`
	Operator   int    `xorm:"not null default 0 TINYINT(2)"`
	Type       int    `xorm:"not null default 0 TINYINT(2)"`
	Title      string `xorm:"not null VARCHAR(128)"`
	ImgUrl     string `xorm:"not null VARCHAR(256)"`
	IconUrl    string `xorm:"not null VARCHAR(256)"`
	Content    string `xorm:"not null VARCHAR(2048)"`
	Link       string `xorm:"not null VARCHAR(256)"`
	PubTime    int64  `xorm:"not null BIGINT(20)"`
	TimetaskId int    `xorm:"not null INT(4)"`
	Status     int    `xorm:"not null default 0 TINYINT(2)"`
	StartTime  int64  `xorm:"not null BIGINT(20)"`
	EndTime    int64  `xorm:"not null BIGINT(20)"`
	CreateTime int64  `xorm:"not null BIGINT(20)"`
	UpdateTime int64  `xorm:"not null BIGINT(20)"`
}

type TArmErrmsg struct {
	Id         int64  `xorm:"pk autoincr BIGINT(64)"`
	ParkCode   int64  `xorm:"not null default 0 BIGINT(12)"`
	ArmCode    int64  `xorm:"not null default 0 BIGINT(12)"`
	DeviceId   int    `xorm:"not null default 0 INT(4)"`
	ErrCode    int    `xorm:"not null default 0 INT(6)"`
	ErrMsg     string `xorm:"not null default '' VARCHAR(256)"`
	ErrTime    int64  `xorm:"not null default 0 BIGINT(11)"`
	InsertTime int64  `xorm:"not null default 0 BIGINT(11)"`
}

type TArmMessage struct {
	Id         int64  `xorm:"pk autoincr BIGINT(64)"`
	OrderId    string `xorm:"not null default '0' VARCHAR(64)"`
	MsgId      int    `xorm:"not null default 0 INT(6)"`
	VplNumber  string `xorm:"VARCHAR(64)"`
	ParkCode   int64  `xorm:"not null default 0 BIGINT(12)"`
	ArmCode    int64  `xorm:"not null default 0 BIGINT(12)"`
	Status     int    `xorm:"not null default 0 index TINYINT(4)"`
	Message    string `xorm:"not null default '' VARCHAR(2048)"`
	InsertTime int64  `xorm:"not null default 0 BIGINT(11)"`
	SendTime   int64  `xorm:"not null default 0 BIGINT(11)"`
	SuccTime   int64  `xorm:"not null default 0 BIGINT(11)"`
	ExtraData  string `xorm:"VARCHAR(2048)"`
}

type TBaolongBind struct {
	Id         int    `xorm:"not null pk autoincr INT(10)"`
	ParkCode   int64  `xorm:"not null default 0 BIGINT(20)"`
	MallId     int64  `xorm:"not null default 0 BIGINT(20)"`
	MallName   string `xorm:"not null default '0' VARCHAR(128)"`
	UpdateTime int64  `xorm:"not null default 0 BIGINT(20)"`
}

type TBillFeedback struct {
	Id          int64  `xorm:"pk autoincr BIGINT(20)"`
	Uid         int64  `xorm:"BIGINT(20)"`
	BillId      string `xorm:"VARCHAR(40)"`
	Issues      string `xorm:"VARCHAR(20)"`
	Reply       string `xorm:"VARCHAR(256)"`
	Description string `xorm:"VARCHAR(256)"`
	IsPaid      int    `xorm:"TINYINT(4)"`
	IsOut       int    `xorm:"TINYINT(4)"`
	Shield      int    `xorm:"not null default 0 TINYINT(4)"`
	ParkCode    int64  `xorm:"not null BIGINT(20)"`
	UpdateTime  int64  `xorm:"BIGINT(20)"`
}

type TBinBank struct {
	Id           int    `xorm:"not null pk autoincr INT(10)"`
	Bin          int    `xorm:"not null default 0 INT(10)"`
	BankName     string `xorm:"not null VARCHAR(64)"`
	TrueName     string `xorm:"not null VARCHAR(64)"`
	CardName     string `xorm:"not null VARCHAR(64)"`
	IsCreditCard int    `xorm:"not null default 0 TINYINT(2)"`
	Icon         string `xorm:"not null VARCHAR(512)"`
}

type TCardApply struct {
	Id             int64  `xorm:"pk autoincr BIGINT(20)"`
	Uid            int64  `xorm:"not null unique(uid_card_id_vpl) BIGINT(20)"`
	ParkCode       int64  `xorm:"not null BIGINT(20)"`
	CardId         int    `xorm:"not null unique(uid_card_id_vpl) INT(11)"`
	Vpl            string `xorm:"not null default '' unique(uid_card_id_vpl) CHAR(50)"`
	ParkingNo      string `xorm:"default '' CHAR(30)"`
	OwnerName      string `xorm:"not null default '' CHAR(30)"`
	Mobile         string `xorm:"not null default '' CHAR(11)"`
	ExpireStart    int64  `xorm:"not null default 0 BIGINT(20)"`
	ExpireEnd      int64  `xorm:"not null default 0 BIGINT(20)"`
	PreExpireStart int64  `xorm:"default 0 BIGINT(20)"`
	PreExpireEnd   int64  `xorm:"default 0 BIGINT(20)"`
	Address        string `xorm:"default '' CHAR(100)"`
	Email          string `xorm:"default '' CHAR(30)"`
	ApplyStatus    int    `xorm:"not null default 0 TINYINT(4)"`
	PayStatus      int    `xorm:"not null default 0 TINYINT(2)"`
	HandleTime     int64  `xorm:"not null default 0 BIGINT(20)"`
	IsDeleted      int    `xorm:"default 0 TINYINT(2)"`
	Createon       int64  `xorm:"default 0 BIGINT(20)"`
	UpdateTime     int64  `xorm:"default 0 BIGINT(20)"`
	NotifyFlag     int    `xorm:"default 0 TINYINT(2)"`
}

type TCardApplyFeedback struct {
	Id         int64  `xorm:"pk autoincr BIGINT(16)"`
	ApplyId    int64  `xorm:"not null unique BIGINT(16)"`
	Uid        int64  `xorm:"not null BIGINT(16)"`
	Vpl        string `xorm:"not null VARCHAR(32)"`
	ParkCode   int64  `xorm:"not null BIGINT(16)"`
	CardId     int    `xorm:"not null INT(4)"`
	Content    string `xorm:"not null VARCHAR(256)"`
	Reply      string `xorm:"not null VARCHAR(256)"`
	Status     int    `xorm:"not null TINYINT(2)"`
	StartTime  int64  `xorm:"not null BIGINT(16)"`
	EndTime    int64  `xorm:"not null BIGINT(16)"`
	Ctime      int64  `xorm:"not null BIGINT(16)"`
	UpdateTime int64  `xorm:"not null BIGINT(16)"`
}

type TCardApplyPushRecord struct {
	Id            int64  `xorm:"pk autoincr BIGINT(20)"`
	ApplyId       int64  `xorm:"not null BIGINT(20)"`
	Title         string `xorm:"not null VARCHAR(128)"`
	WxContent     string `xorm:"not null VARCHAR(2048)"`
	AppContent    string `xorm:"not null VARCHAR(2048)"`
	AppPushStatus int    `xorm:"not null default 0 TINYINT(2)"`
	WxPushStatus  int    `xorm:"not null default 0 TINYINT(2)"`
	IsTimingPush  int    `xorm:"not null default 0 TINYINT(2)"`
	UpdateTime    int64  `xorm:"not null default 0 BIGINT(20)"`
}

type TCardOrders struct {
	Id          int64  `xorm:"pk autoincr BIGINT(20)"`
	Uid         int64  `xorm:"not null default 0 BIGINT(20)"`
	Cid         int    `xorm:"INT(11)"`
	ParkCode    int64  `xorm:"BIGINT(20)"`
	ApplyId     int64  `xorm:"not null default 0 BIGINT(20)"`
	CardId      int    `xorm:"default 0 INT(11)"`
	ChargeOrder string `xorm:"not null VARCHAR(40)"`
	Channel     int    `xorm:"not null default 0 INT(4)"`
	Vpl         string `xorm:"not null default '' CHAR(10)"`
	Counts      int    `xorm:"not null default 0 INT(4)"`
	Amount      int    `xorm:"not null default 0 INT(11)"`
	Status      int    `xorm:"not null default 0 TINYINT(4)"`
	Description string `xorm:"not null VARCHAR(512)"`
	PayTime     int    `xorm:"default 0 INT(11)"`
	UpdateTime  int64  `xorm:"default 0 BIGINT(20)"`
	ExpireStart int64  `xorm:"default 0 BIGINT(20)"`
	ExpireEnd   int64  `xorm:"default 0 BIGINT(20)"`
	Createon    int64  `xorm:"default 0 BIGINT(20)"`
	Src         string `xorm:"default 'wechat' VARCHAR(128)"`
}

type TCardTypes struct {
	Id         int    `xorm:"not null pk autoincr INT(11)"`
	Cid        int    `xorm:"not null default 0 INT(11)"`
	Title      string `xorm:"default '' CHAR(30)"`
	TStatus    int    `xorm:"default 1 TINYINT(4)"`
	Createon   int    `xorm:"INT(11)"`
	IsDelete   int    `xorm:"default 0 TINYINT(4)"`
	UpdateTime int    `xorm:"INT(11)"`
}

type TCompanyInfo struct {
	Id        int64  `xorm:"pk autoincr BIGINT(64)"`
	Name      string `xorm:"not null default '' unique(key1) VARCHAR(32)"`
	Email     string `xorm:"not null default '' VARCHAR(32)"`
	Mobile    string `xorm:"not null default '' VARCHAR(12)"`
	Status    int    `xorm:"not null default 0 TINYINT(4)"`
	Token     string `xorm:"not null default '' unique(key1) VARCHAR(32)"`
	Logo      string `xorm:"CHAR(100)"`
	Theme     string `xorm:"CHAR(60)"`
	HaveTheme int    `xorm:"default 0 TINYINT(4)"`
	HaveGroup int    `xorm:"default 0 TINYINT(4)"`
	Updateon  int    `xorm:"INT(11)"`
	Createon  int    `xorm:"INT(11)"`
	OnlinePay string `xorm:"default '' VARCHAR(32)"`
}

type TCouponIssuedRecord struct {
	Id          int    `xorm:"not null pk autoincr INT(10)"`
	AccessToken string `xorm:"not null VARCHAR(40)"`
	VplNumber   string `xorm:"not null VARCHAR(40)"`
	ParkCode    int64  `xorm:"not null BIGINT(20)"`
	CouponType  int    `xorm:"not null INT(10)"`
	CouponValue int    `xorm:"not null INT(10)"`
	TimeStart   int64  `xorm:"not null BIGINT(20)"`
	TimeEnd     int64  `xorm:"not null BIGINT(20)"`
	UpdateTime  int64  `xorm:"not null BIGINT(20)"`
}

type TCouponRedbag struct {
	Id         int64  `xorm:"pk autoincr BIGINT(20)"`
	RedbagId   string `xorm:"not null VARCHAR(32)"`
	ParkCode   int64  `xorm:"not null BIGINT(20)"`
	RecordId   int64  `xorm:"not null BIGINT(11)"`
	Amount     int    `xorm:"not null INT(4)"`
	SerialNum  int    `xorm:"not null INT(4)"`
	OpenId     string `xorm:"not null VARCHAR(32)"`
	Phone      string `xorm:"not null VARCHAR(11)"`
	Avatar     string `xorm:"not null VARCHAR(128)"`
	Comment    string `xorm:"not null VARCHAR(128)"`
	NickName   string `xorm:"not null VARCHAR(32)"`
	SnatchTime int64  `xorm:"not null default 0 BIGINT(20)"`
	Createon   int64  `xorm:"not null BIGINT(20)"`
}

type TDiscount struct {
	Id              int `xorm:"not null pk autoincr INT(10)"`
	ActivityBegin   int `xorm:"not null default 0 INT(10)"`
	ActivityEnd     int `xorm:"not null default 0 INT(10)"`
	FirstTrial      int `xorm:"not null default 0 INT(10)"`
	ChargeThreshold int `xorm:"not null default 0 INT(10)"`
	Gift            int `xorm:"not null default 0 INT(10)"`
	BindCardGift    int `xorm:"not null default 0 INT(10)"`
}

type TDistrict struct {
	Id       int    `xorm:"not null pk autoincr INT(12)"`
	Lft      int    `xorm:"not null index(key1) INT(12)"`
	Rgt      int    `xorm:"not null index INT(12)"`
	Level    int    `xorm:"not null default 0 index(key1) INT(6)"`
	Name     string `xorm:"not null default '' VARCHAR(50)"`
	Code     string `xorm:"not null default '' VARCHAR(12)"`
	Zip      string `xorm:"not null default '' VARCHAR(6)"`
	Callcode string `xorm:"not null default '' VARCHAR(6)"`
	Typ      int    `xorm:"not null default 0 TINYINT(4)"`
	Ordr     int    `xorm:"not null default 0 TINYINT(4)"`
	Hidden   int    `xorm:"not null default 0 TINYINT(4)"`
	Memo     string `xorm:"not null default '' VARCHAR(255)"`
}

type TFixQrInfo struct {
	Id         int64  `xorm:"pk autoincr BIGINT(15)"`
	Url        string `xorm:"not null VARCHAR(512)"`
	CreateTime int64  `xorm:"not null BIGINT(15)"`
}

type TGroupUser struct {
	Id        int    `xorm:"not null pk autoincr INT(11)"`
	Username  string `xorm:"CHAR(30)"`
	Token     string `xorm:"CHAR(32)"`
	Password  string `xorm:"CHAR(32)"`
	Cid       int    `xorm:"INT(11)"`
	Utype     int    `xorm:"default 2 TINYINT(4)"`
	Phone     string `xorm:"default '' CHAR(15)"`
	Email     string `xorm:"default '' CHAR(100)"`
	Ustatus   int    `xorm:"default 0 TINYINT(4)"`
	ParkCodes string `xorm:"VARCHAR(500)"`
	Authority string `xorm:"CHAR(200)"`
	Updateon  int    `xorm:"INT(11)"`
	Createon  int    `xorm:"INT(11)"`
	Power     string `xorm:"VARCHAR(1024)"`
	TokenWeb  string `xorm:"CHAR(32)"`
	CreateBy  int    `xorm:"INT(11)"`
}

type TInvoiceRecord struct {
	Id           int64  `xorm:"pk autoincr BIGINT(20)"`
	ParkCode     int64  `xorm:"not null unique(park_code) BIGINT(10)"`
	RecordId     int    `xorm:"not null default 0 unique(park_code) INT(10)"`
	Type         int    `xorm:"default 0 TINYINT(1)"`
	Ctime        int    `xorm:"default 0 INT(10)"`
	TaxNum       string `xorm:"default '' VARCHAR(32)"`
	Header       string `xorm:"default '' VARCHAR(32)"`
	AddressPhone string `xorm:"default '' VARCHAR(256)"`
	BankAccount  string `xorm:"VARCHAR(32)"`
}

type TLocation struct {
	Id        int    `xorm:"not null INT(7)"`
	Name      string `xorm:"VARCHAR(40)"`
	Parentid  int    `xorm:"INT(7)"`
	Shortname string `xorm:"VARCHAR(40)"`
	Leveltype int    `xorm:"TINYINT(2)"`
	Citycode  string `xorm:"VARCHAR(7)"`
	Zipcode   string `xorm:"VARCHAR(7)"`
	Lng       string `xorm:"VARCHAR(20)"`
	Lat       string `xorm:"VARCHAR(20)"`
	Pinyin    string `xorm:"VARCHAR(40)"`
	Status    string `xorm:"default '1' ENUM('0','1')"`
}

type TLoginRecord struct {
	Id         int    `xorm:"not null pk autoincr INT(10)"`
	Uid        int    `xorm:"INT(10)"`
	Host       string `xorm:"VARCHAR(20)"`
	Session    string `xorm:"VARCHAR(40)"`
	UserAgent  string `xorm:"VARCHAR(255)"`
	UpdateTime int64  `xorm:"BIGINT(20)"`
}

type TManageUserInfo struct {
	Id          int64  `xorm:"pk autoincr BIGINT(64)"`
	Username    string `xorm:"not null default '' VARCHAR(32)"`
	Password    string `xorm:"not null default '' VARCHAR(32)"`
	Email       string `xorm:"not null default '' VARCHAR(32)"`
	Mobile      string `xorm:"not null default '' VARCHAR(12)"`
	Status      int    `xorm:"not null default 0 TINYINT(4)"`
	Type        int    `xorm:"not null default 3 TINYINT(4)"`
	Authority   string `xorm:"VARCHAR(1000)"`
	Role        int    `xorm:"default 0 INT(11)"`
	Cid         int64  `xorm:"BIGINT(64)"`
	Pids        string `xorm:"not null default '' VARCHAR(2600)"`
	Updateon    int    `xorm:"INT(11)"`
	Createon    int    `xorm:"INT(11)"`
	AuthKey     string `xorm:"VARCHAR(100)"`
	AccessToken string `xorm:"VARCHAR(100)"`
}

type TMigrations struct {
	Version int64 `xorm:"not null BIGINT(20)"`
}

type TOperatorRecord struct {
	Id         int    `xorm:"not null pk autoincr INT(11)"`
	Uid        int    `xorm:"not null INT(11)"`
	Cmd        string `xorm:"not null default '' VARCHAR(64)"`
	InsertTime int64  `xorm:"not null BIGINT(20)"`
	Extradata  string `xorm:"not null default '' VARCHAR(512)"`
}

type TOrderRecord struct {
	Id              int64  `xorm:"pk autoincr BIGINT(64)"`
	Uid             int64  `xorm:"not null default 0 BIGINT(64)"`
	ParkOrderId     int64  `xorm:"not null default 0 BIGINT(64)"`
	ParkCode        int64  `xorm:"not null default 0 BIGINT(12)"`
	VplNumber       string `xorm:"not null default '' index VARCHAR(32)"`
	CreditCard      string `xorm:"not null default '' VARCHAR(32)"`
	ParkingCharge   int    `xorm:"not null default 0 INT(6)"`
	ShouldPay       int    `xorm:"not null default 0 INT(6)"`
	ParkingDuration int    `xorm:"not null default 0 INT(6)"`
	BillingOrder    string `xorm:"not null default '' unique VARCHAR(32)"`
	InvoiceOrder    string `xorm:"not null default '' VARCHAR(32)"`
	InvoiceStatus   int    `xorm:"not null default 0 TINYINT(2)"`
	BillingDate     int    `xorm:"not null default 0 INT(12)"`
	Cid             int    `xorm:"not null default 0 INT(12)"`
	PaymentType     int    `xorm:"not null default 0 TINYINT(4)"`
	CouponIds       string `xorm:"not null default '0' VARCHAR(32)"`
	Status          int    `xorm:"not null default 0 TINYINT(4)"`
	Message         string `xorm:"not null default '' VARCHAR(256)"`
	Source          string `xorm:"not null default '' VARCHAR(256)"`
	ArmReceived     int    `xorm:"not null default 0 TINYINT(2)"`
}

type TParkChannel struct {
	Id             int64  `xorm:"pk autoincr BIGINT(64)"`
	Status         int    `xorm:"not null default 0 TINYINT(4)"`
	Type           int    `xorm:"not null default 0 TINYINT(4)"`
	AreaCode       int    `xorm:"not null default 0 INT(12)"`
	ParkCode       int64  `xorm:"not null default 0 unique(key1) BIGINT(12)"`
	ArmCode        int    `xorm:"not null default 0 unique(key1) INT(12)"`
	ArmVersion     string `xorm:"CHAR(10)"`
	ChannelName    string `xorm:"not null default '' VARCHAR(32)"`
	EntranceName   string `xorm:"VARCHAR(32)"`
	ExitName       string `xorm:"VARCHAR(32)"`
	ChannelAddress string `xorm:"not null default '' VARCHAR(2048)"`
	ChannelGps     string `xorm:"not null default '' VARCHAR(64)"`
	ChannelGpsOut  string `xorm:"not null default '' VARCHAR(64)"`
	Description    string `xorm:"not null default '' VARCHAR(2048)"`
	Attention      int    `xorm:"default 0 TINYINT(4)"`
	OutDevice      string `xorm:"default '0' CHAR(12)"`
	InDevice       string `xorm:"default '0' CHAR(12)"`
	UpdateTime     int64  `xorm:"not null default 0 BIGINT(11)"`
}

type TParkInfo struct {
	Id               int64  `xorm:"pk autoincr BIGINT(64)"`
	Cid              int64  `xorm:"BIGINT(64)"`
	Status           int    `xorm:"not null default 0 TINYINT(4)"`
	ShowInApp        int    `xorm:"default 1 TINYINT(4)"`
	ArmVersion       string `xorm:"default '1' VARCHAR(10)"`
	ProvinceCode     int    `xorm:"not null default 0 INT(10)"`
	CityCode         int    `xorm:"not null default 0 INT(10)"`
	AreaCode         int    `xorm:"not null default 0 INT(12)"`
	RegionId         int    `xorm:"INT(11)"`
	ParkCode         int64  `xorm:"not null default 0 unique BIGINT(12)"`
	ParkCodeHash     string `xorm:"CHAR(33)"`
	ParkingName      string `xorm:"not null default '' VARCHAR(32)"`
	SpaceTotal       int    `xorm:"not null default 0 INT(12)"`
	SpaceEmpty       int    `xorm:"not null default 0 INT(12)"`
	TmpSpaceEmpty    int    `xorm:"not null default 0 INT(12)"`
	VipSpaceEmpty    int    `xorm:"not null default 0 INT(12)"`
	VipSpaceTotal    int    `xorm:"not null default 0 INT(12)"`
	TmpSpaceTotal    int    `xorm:"not null default 0 INT(12)"`
	ParkingAddress   string `xorm:"not null default '' VARCHAR(2048)"`
	DiscountInfo     string `xorm:"not null default '' VARCHAR(512)"`
	ParkingGps       string `xorm:"not null default '' VARCHAR(64)"`
	ContactUser      string `xorm:"not null default '' VARCHAR(32)"`
	ContactMobile    string `xorm:"not null default '' VARCHAR(12)"`
	ChargeCriterion  string `xorm:"not null default '' VARCHAR(2048)"`
	OpenTime         string `xorm:"not null default '' VARCHAR(12)"`
	ParkingType      string `xorm:"not null default '' VARCHAR(12)"`
	CostType         int    `xorm:"not null default 0 TINYINT(4)"`
	ParkingChannels  string `xorm:"not null default '' VARCHAR(2048)"`
	Others           string `xorm:"default '' VARCHAR(2048)"`
	UpdateTime       int64  `xorm:"not null default 0 BIGINT(11)"`
	SupportQuickPass int    `xorm:"not null default 0 TINYINT(4)"`
	SupportPayment   int    `xorm:"not null default 1 INT(8)"`
	Rentable         int    `xorm:"default 0 TINYINT(4)"`
	Staggerable      int    `xorm:"default 0 TINYINT(4)"`
	RecongnizeRate   int    `xorm:"default 0 TINYINT(4)"`
	SavePic          int    `xorm:"TINYINT(4)"`
	ParkingPrice     int    `xorm:"default 0 INT(4)"`
	ParkingPriceNoon int    `xorm:"default 0 INT(4)"`
	ReserveTime      int    `xorm:"not null default 0 INT(4)"`
	ShowQr           int    `xorm:"default 0 TINYINT(4)"`
	HasStereoGarage  int    `xorm:"default 0 TINYINT(2)"`
}

type TParkOnlinePay struct {
	Id       int    `xorm:"not null pk autoincr INT(10)"`
	ParkCode int64  `xorm:"not null BIGINT(64)"`
	Cid      int    `xorm:"not null INT(10)"`
	Channel  string `xorm:"not null CHAR(20)"`
}

type TParkPayDiscount struct {
	Id          int    `xorm:"not null pk autoincr INT(10)"`
	ParkCode    int64  `xorm:"not null BIGINT(12)"`
	Discount    int    `xorm:"not null TINYINT(4)"`
	Note        string `xorm:"VARCHAR(2048)"`
	Description string `xorm:"not null VARCHAR(2048)"`
	CallStatus  string `xorm:"VARCHAR(1024)"`
	Operator    int64  `xorm:"not null BIGINT(64)"`
	OperateTime int    `xorm:"not null INT(10)"`
	IsOn        int    `xorm:"default 0 TINYINT(4)"`
}

type TParkSpaceLock struct {
	Id             int    `xorm:"not null pk autoincr INT(10)"`
	VplNumber      string `xorm:"not null unique VARCHAR(20)"`
	ParkCode       int    `xorm:"INT(10)"`
	RecordId       int    `xorm:"INT(10)"`
	UnlockCode     string `xorm:"VARCHAR(32)"`
	LockState      int    `xorm:"default 0 INT(10)"`
	AutoLockEnable int    `xorm:"default 0 INT(10)"`
	TimeStart      string `xorm:"VARCHAR(20)"`
	TimeEnd        string `xorm:"VARCHAR(20)"`
	UpdateTime     int64  `xorm:"BIGINT(20)"`
}

type TParkSpaceRecord struct {
	Id            int64 `xorm:"pk autoincr BIGINT(20)"`
	ParkCode      int64 `xorm:"not null unique(park_code) BIGINT(10)"`
	SpaceTotal    int   `xorm:"not null default 0 INT(10)"`
	SpaceEmpty    int   `xorm:"not null default 0 INT(10)"`
	TmpSpaceTotal int   `xorm:"not null default 0 INT(10)"`
	TmpSpaceEmpty int   `xorm:"not null default 0 INT(10)"`
	VipSpaceTotal int   `xorm:"not null default 0 INT(10)"`
	VipSpaceEmpty int   `xorm:"not null INT(10)"`
	UpdateTime    int64 `xorm:"not null default 0 unique(park_code) BIGINT(11)"`
}

type TParkWarn struct {
	Id            int    `xorm:"not null pk autoincr INT(10)"`
	ParkCode      int64  `xorm:"not null BIGINT(12)"`
	ContactUser   string `xorm:"not null VARCHAR(32)"`
	ContactMobile string `xorm:"not null VARCHAR(12)"`
	Open          int    `xorm:"not null TINYINT(1)"`
}

type TParkingCards struct {
	Id          int64  `xorm:"pk autoincr BIGINT(20)"`
	ParkCode    int64  `xorm:"not null BIGINT(20)"`
	TypeId      int    `xorm:"INT(11)"`
	IcoType     string `xorm:"default '' CHAR(255)"`
	CardName    string `xorm:"not null default '' CHAR(50)"`
	Price       int    `xorm:"not null default 0 INT(11)"`
	Stock       int    `xorm:"not null default 0 INT(11)"`
	TotalStock  int    `xorm:"default 0 INT(11)"`
	ExpiryCount int    `xorm:"not null default 0 INT(11)"`
	ExpiryType  int    `xorm:"not null default 1 TINYINT(4)"`
	TimeStart   int    `xorm:"default 0 TINYINT(4)"`
	TimeEnd     int    `xorm:"default 23 TINYINT(4)"`
	NeedReview  int    `xorm:"not null default 0 TINYINT(4)"`
	CardStatus  int    `xorm:"not null default 1 TINYINT(4)"`
	UpdateTime  int    `xorm:"default 0 INT(11)"`
	IsDelete    int    `xorm:"default 0 TINYINT(4)"`
	Createon    int    `xorm:"default 0 INT(11)"`
}

type TParkingMarketIssue struct {
	Id             int64  `xorm:"pk autoincr BIGINT(20)"`
	ApplyId        int64  `xorm:"not null BIGINT(20)"`
	CouponId       string `xorm:"not null VARCHAR(32)"`
	ParkCode       int64  `xorm:"not null BIGINT(20)"`
	VplNumber      string `xorm:"not null VARCHAR(64)"`
	BillingOrder   string `xorm:"not null VARCHAR(32)"`
	Type           int    `xorm:"not null TINYINT(2)"`
	ExpireStart    int64  `xorm:"not null BIGINT(20)"`
	ExpireEnd      int64  `xorm:"not null BIGINT(20)"`
	Validbtime     int    `xorm:"not null TINYINT(2)"`
	Validetime     int    `xorm:"not null TINYINT(2)"`
	Timing         int    `xorm:"default 0 TINYINT(2)"`
	Status         int    `xorm:"default 0 TINYINT(2)"`
	CreateTime     int64  `xorm:"not null BIGINT(20)"`
	UpdateTime     int64  `xorm:"not null BIGINT(20)"`
	LasteIssueTime int64  `xorm:"BIGINT(20)"`
}

type TPayInfo struct {
	Id            int64  `xorm:"pk autoincr BIGINT(64)"`
	Cid           int64  `xorm:"BIGINT(12)"`
	ParkCode      int64  `xorm:"not null default 0 BIGINT(12)"`
	VplNumber     string `xorm:"not null default '' VARCHAR(12)"`
	ParkingCharge int    `xorm:"not null default 0 INT(6)"`
	PaymentType   int    `xorm:"not null default 0 TINYINT(4)"`
	InsertTime    int    `xorm:"not null default 0 INT(12)"`
	Message       string `xorm:"not null default '' VARCHAR(256)"`
}

type TPayIssuedRecord struct {
	Id          int    `xorm:"not null pk autoincr INT(10)"`
	AccessToken string `xorm:"not null VARCHAR(40)"`
	VplNumber   string `xorm:"not null VARCHAR(40)"`
	ParkCode    int    `xorm:"not null INT(10)"`
	Amount      int    `xorm:"not null INT(10)"`
	UpdateTime  int64  `xorm:"not null BIGINT(20)"`
}

type TPayRecord struct {
	Id         int64  `xorm:"pk autoincr BIGINT(15)"`
	Uid        int64  `xorm:"not null default 0 BIGINT(15)"`
	Order      string `xorm:"not null VARCHAR(32)"`
	VplNumber  string `xorm:"not null VARCHAR(20)"`
	ParkCode   int64  `xorm:"not null BIGINT(15)"`
	Type       int    `xorm:"not null default 1 TINYINT(2)"`
	Cid        int    `xorm:"not null INT(4)"`
	Amount     int    `xorm:"not null INT(4)"`
	PayTime    int64  `xorm:"not null BIGINT(15)"`
	Channel    int    `xorm:"not null TINYINT(2)"`
	CreateTime int64  `xorm:"not null BIGINT(15)"`
}

type TRegion struct {
	Id         int    `xorm:"not null pk autoincr INT(11)"`
	CompanyId  int    `xorm:"INT(11)"`
	RegionName string `xorm:"CHAR(30)"`
	ParkCount  int    `xorm:"default 0 INT(11)"`
	IsDelete   int    `xorm:"default 0 TINYINT(4)"`
	Createon   int64  `xorm:"BIGINT(20)"`
}

type TRegionPark struct {
	Id       int   `xorm:"not null pk autoincr INT(11)"`
	RegionId int64 `xorm:"BIGINT(20)"`
	ParkCode int64 `xorm:"BIGINT(20)"`
	Createon int64 `xorm:"BIGINT(20)"`
}

type TRoles struct {
	Id        int    `xorm:"not null pk autoincr INT(11)"`
	RoleName  string `xorm:"CHAR(255)"`
	Memo      string `xorm:"default '' CHAR(255)"`
	Functions string `xorm:"VARCHAR(1000)"`
	IsDelete  int    `xorm:"default 0 TINYINT(4)"`
	Updateon  int    `xorm:"INT(11)"`
}

type TSelfServiceMachine struct {
	Id            int    `xorm:"not null pk autoincr unique INT(10)"`
	ParkCode      int64  `xorm:"not null BIGINT(12)"`
	Name          string `xorm:"CHAR(45)"`
	SelfCode      int    `xorm:"INT(11)"`
	Url           string `xorm:"not null default '' VARCHAR(100)"`
	Position      string `xorm:"default '' VARCHAR(100)"`
	MachineStatus int    `xorm:"TINYINT(4)"`
}

type TServerConfig struct {
	Id         int    `xorm:"not null pk autoincr INT(11)"`
	ServerName string `xorm:"not null VARCHAR(128)"`
	Section    string `xorm:"not null VARCHAR(64)"`
	ConfigKey  string `xorm:"not null VARCHAR(64)"`
	Value      string `xorm:"not null VARCHAR(2048)"`
}

type TServerMonitor struct {
	Id             int64   `xorm:"pk autoincr BIGINT(20)"`
	ServerId       int     `xorm:"INT(11)"`
	WanIp          string  `xorm:"CHAR(15)"`
	LanIp          string  `xorm:"CHAR(15)"`
	Users          int     `xorm:"INT(11)"`
	LoadAverage1   float32 `xorm:"FLOAT"`
	LoadAverage5   float32 `xorm:"FLOAT"`
	LoadAverage15  float32 `xorm:"FLOAT"`
	TotalProsess   int     `xorm:"INT(11)"`
	RunningProsess int     `xorm:"INT(11)"`
	CpuUse         float32 `xorm:"FLOAT"`
	MemTotal       int     `xorm:"INT(11)"`
	MemUsed        int     `xorm:"INT(11)"`
	MemBuffer      int     `xorm:"INT(11)"`
	HdCapacity     float32 `xorm:"FLOAT"`
	HdUsed         float32 `xorm:"FLOAT"`
	Flow           string  `xorm:"VARCHAR(1000)"`
	Swap           int     `xorm:"INT(11)"`
	SwapUsed       int     `xorm:"INT(11)"`
	Createon       int     `xorm:"INT(11)"`
}

type TServers struct {
	Id           int     `xorm:"not null pk autoincr INT(10)"`
	ServerName   string  `xorm:"CHAR(100)"`
	WanIp        string  `xorm:"CHAR(15)"`
	LanIp        string  `xorm:"CHAR(15)"`
	CpuCount     int     `xorm:"TINYINT(4)"`
	Frequency    float32 `xorm:"FLOAT"`
	CoreCount    int     `xorm:"INT(11)"`
	Ram          int     `xorm:"INT(11)"`
	HdCapacity   int     `xorm:"INT(11)"`
	ServerStatus int     `xorm:"default 1 TINYINT(4)"`
	Memo         string  `xorm:"CHAR(255)"`
	IsDelete     int     `xorm:"default 0 TINYINT(4)"`
	Createon     int     `xorm:"INT(11)"`
}

type TSlaveMonitor struct {
	Id                 int64  `xorm:"pk autoincr BIGINT(20)"`
	ServerName         string `xorm:"CHAR(30)"`
	Ip                 string `xorm:"CHAR(15)"`
	DbPort             int    `xorm:"INT(11)"`
	SlaveIoState       string `xorm:"CHAR(100)"`
	MasterHost         string `xorm:"CHAR(15)"`
	MasterLogFile      string `xorm:"CHAR(50)"`
	RelayLogFile       string `xorm:"CHAR(50)"`
	RelayLogPos        int64  `xorm:"BIGINT(20)"`
	RelayMasterLogFile string `xorm:"CHAR(50)"`
	SlaveIoRunning     string `xorm:"CHAR(5)"`
	SlaveSqlRunning    string `xorm:"CHAR(5)"`
	Createon           int64  `xorm:"BIGINT(20)"`
}

type TSmsCode struct {
	Id         int    `xorm:"not null pk autoincr INT(11)"`
	Mobile     string `xorm:"not null unique VARCHAR(12)"`
	SmsCode    string `xorm:"VARCHAR(10)"`
	Purpose    string `xorm:"not null VARCHAR(12)"`
	UpdateTime int64  `xorm:"not null BIGINT(20)"`
}

type TTvInfo struct {
	Id       int64  `xorm:"pk autoincr BIGINT(64)"`
	Session  string `xorm:"not null default '' VARCHAR(32)"`
	Identity string `xorm:"not null default '' unique VARCHAR(32)"`
	Password string `xorm:"not null default '' VARCHAR(32)"`
	Device   string `xorm:"not null default '' VARCHAR(256)"`
	ParkCode int64  `xorm:"not null default 0 BIGINT(10)"`
	Ctime    int    `xorm:"not null default 0 INT(10)"`
}

type TUpgradeRules struct {
	Id           int    `xorm:"not null pk INT(11)"`
	App          string `xorm:"not null VARCHAR(32)"`
	AppType      int    `xorm:"not null default 0 TINYINT(1)"`
	VersionCode  int    `xorm:"INT(11)"`
	VersionName  string `xorm:"VARCHAR(16)"`
	StartVersion string `xorm:"VARCHAR(16)"`
	EndVersion   string `xorm:"VARCHAR(16)"`
	ProvinceCode int    `xorm:"INT(4)"`
	ProvinceName string `xorm:"VARCHAR(32)"`
	CityCode     string `xorm:"VARCHAR(32)"`
	CityName     string `xorm:"VARCHAR(32)"`
	Uids         string `xorm:"default '' VARCHAR(1024)"`
	UpgradeUrl   string `xorm:"VARCHAR(512)"`
	FileSize     int64  `xorm:"BIGINT(15)"`
	FileHash     string `xorm:"VARCHAR(32)"`
	ReleaseNote  string `xorm:"VARCHAR(1024)"`
	UpgradeType  int    `xorm:"default 1 TINYINT(4)"`
	Channel      string `xorm:"VARCHAR(32)"`
	NetworkType  int    `xorm:"default 0 TINYINT(4)"`
	Createon     int64  `xorm:"BIGINT(16)"`
	IsDeleted    int    `xorm:"default 0 TINYINT(2)"`
}

type TUserCarlock struct {
	Id                 int64  `xorm:"pk autoincr BIGINT(64)"`
	Uid                int64  `xorm:"not null default 0 BIGINT(64)"`
	VehiclePlateNumber string `xorm:"not null default '' VARCHAR(12)"`
	Validbtime         int64  `xorm:"not null default 0 BIGINT(11)"`
	Validetime         int64  `xorm:"not null default 0 BIGINT(11)"`
	UnlockCode         string `xorm:"not null default '' VARCHAR(6)"`
}

type TUserCreditCard struct {
	Id                 int64  `xorm:"pk autoincr BIGINT(64)"`
	Uid                int64  `xorm:"not null default 0 unique(key1) BIGINT(64)"`
	CreditCardNumber   string `xorm:"not null default '' unique(key1) VARCHAR(32)"`
	MobileNumber       string `xorm:"not null default '' VARCHAR(12)"`
	IdNumber           string `xorm:"not null default '' VARCHAR(20)"`
	CardType           int    `xorm:"not null default 1 TINYINT(2)"`
	Name               string `xorm:"not null default '' VARCHAR(30)"`
	ValidDate          string `xorm:"not null default '' VARCHAR(30)"`
	Cnv2               string `xorm:"not null default '' VARCHAR(10)"`
	CreditCardValidity string `xorm:"not null default '' VARCHAR(12)"`
	BindOrder          string `xorm:"not null default '' unique VARCHAR(32)"`
	UnbindOrder        string `xorm:"not null default '' unique VARCHAR(32)"`
	IsDefault          int    `xorm:"not null default 0 TINYINT(4)"`
	Status             int    `xorm:"not null default 0 TINYINT(4)"`
	UpdateTime         int64  `xorm:"not null default 0 BIGINT(11)"`
	ApiVersion         string `xorm:"not null default '1.0' VARCHAR(32)"`
	Createon           int64  `xorm:"not null default 0 BIGINT(11)"`
}

type TUserFeedback struct {
	Id          int64  `xorm:"pk autoincr BIGINT(64)"`
	Uid         int64  `xorm:"not null BIGINT(64)"`
	DeviceId    string `xorm:"not null default '' VARCHAR(32)"`
	DeviceType  int    `xorm:"not null default 0 TINYINT(2)"`
	InsertTime  int    `xorm:"not null INT(10)"`
	Content     string `xorm:"not null default ' ' VARCHAR(1024)"`
	BackContent string `xorm:"VARCHAR(1024)"`
	BackStatus  int    `xorm:"default 0 TINYINT(4)"`
	OperateTime int    `xorm:"default 0 INT(10)"`
	Operator    int64  `xorm:"BIGINT(64)"`
}

type TUserGrowthRecord struct {
	Id          int    `xorm:"not null pk autoincr INT(10)"`
	Uid         int    `xorm:"not null INT(10)"`
	Description string `xorm:"not null VARCHAR(128)"`
	Growth      int    `xorm:"not null INT(10)"`
	UpdateTime  int64  `xorm:"not null BIGINT(20)"`
}

type TUserIbeanRecord struct {
	Id          int    `xorm:"not null pk autoincr INT(10)"`
	Uid         int    `xorm:"not null INT(10)"`
	Description string `xorm:"not null VARCHAR(128)"`
	Ibean       int    `xorm:"not null INT(10)"`
	UpdateTime  int64  `xorm:"not null BIGINT(20)"`
}

type TUserInfo struct {
	Id             int64  `xorm:"pk autoincr BIGINT(64)"`
	Username       string `xorm:"not null default '' VARCHAR(32)"`
	Avatar         string `xorm:"not null default '' VARCHAR(512)"`
	WeixinNickname string `xorm:"not null default '' VARCHAR(128)"`
	WeixinAvatar   string `xorm:"not null default '' VARCHAR(512)"`
	Password       string `xorm:"not null default '' VARCHAR(32)"`
	Email          string `xorm:"not null default '' VARCHAR(32)"`
	Mobile         string `xorm:"not null default '' index VARCHAR(12)"`
	Status         int    `xorm:"not null default 0 TINYINT(4)"`
	Session        string `xorm:"not null default '' VARCHAR(32)"`
	CardLimit      int    `xorm:"not null default 0 INT(12)"`
	DeviceId       string `xorm:"not null default '' VARCHAR(32)"`
	DeviceType     int    `xorm:"not null default 0 TINYINT(2)"`
	OpenId         string `xorm:"not null default '' index VARCHAR(32)"`
	PlatformId     string `xorm:"not null default '' VARCHAR(32)"`
	UnionId        string `xorm:"not null default '' index VARCHAR(32)"`
	UnionType      int    `xorm:"not null default 1 TINYINT(2)"`
	Sex            int    `xorm:"not null default 0 TINYINT(1)"`
	Ctime          int    `xorm:"not null INT(10)"`
	SubscribeTime  int    `xorm:"not null INT(10)"`
	PushState      int    `xorm:"not null default 1 TINYINT(4)"`
	SmsCode        string `xorm:"not null default '' VARCHAR(6)"`
	Cid            int    `xorm:"not null default 0 INT(10)"`
}

type TUserIrainTreasure struct {
	Uid            int   `xorm:"INT(10)"`
	Level          int   `xorm:"INT(10)"`
	Growth         int   `xorm:"INT(10)"`
	Ibean          int   `xorm:"INT(10)"`
	LastActiveTime int64 `xorm:"BIGINT(20)"`
	UpdateTime     int64 `xorm:"BIGINT(20)"`
}

type TUserMoreInfo struct {
	Id              int64  `xorm:"pk autoincr BIGINT(20)"`
	Uid             int64  `xorm:"not null unique BIGINT(20)"`
	TaxpayerTitle   string `xorm:"not null VARCHAR(128)"`
	TaxpayerId      string `xorm:"not null VARCHAR(32)"`
	TaxpayerType    int    `xorm:"not null default 0 TINYINT(2)"`
	TaxpayerAddr    string `xorm:"not null VARCHAR(128)"`
	TaxpayerMobile  string `xorm:"not null VARCHAR(20)"`
	TaxpayerAccount string `xorm:"not null VARCHAR(32)"`
	VirtualVpl      string `xorm:"not null VARCHAR(1024)"`
	Vvpl            string `xorm:"not null VARCHAR(22)"`
	UpdateTime      int64  `xorm:"not null BIGINT(20)"`
}

type TUserVehiclePlate struct {
	Id                  int64  `xorm:"pk autoincr BIGINT(64)"`
	Uid                 int64  `xorm:"not null default 0 unique(key1) BIGINT(64)"`
	VehiclePlateNumber  string `xorm:"not null default '' unique(key1) VARCHAR(12)"`
	VehiclePlatePicture string `xorm:"not null TEXT"`
	Status              int    `xorm:"not null default 0 TINYINT(4)"`
	Classno             string `xorm:"not null default '' VARCHAR(20)"`
	Engineno            string `xorm:"not null default '' VARCHAR(10)"`
	UpdateTime          int64  `xorm:"not null default 0 BIGINT(11)"`
	ImgUrl              string `xorm:"not null VARCHAR(128)"`
	VerifyStatus        int    `xorm:"not null TINYINT(4)"`
	AutoPay             int    `xorm:"not null default 0 TINYINT(2)"`
	AppVersion          string `xorm:"not null default '1.0' VARCHAR(10)"`
	Reason              string `xorm:"not null VARCHAR(256)"`
}

type TUserWallet struct {
	Id         int64 `xorm:"pk autoincr BIGINT(64)"`
	Uid        int64 `xorm:"not null default 0 unique BIGINT(64)"`
	Balance    int   `xorm:"not null default 0 INT(11)"`
	UpdateTime int   `xorm:"not null default 0 INT(10)"`
}

type TVplnAuthRecord struct {
	Id         int64  `xorm:"pk autoincr BIGINT(64)"`
	Cid        int64  `xorm:"not null index(key1) BIGINT(12)"`
	ParkCode   int64  `xorm:"not null default 0 BIGINT(12)"`
	Type       int    `xorm:"not null default 0 TINYINT(4)"`
	Count      int    `xorm:"not null default 0 INT(12)"`
	Status     int    `xorm:"not null default 0 TINYINT(4)"`
	VplNumber  string `xorm:"not null unique VARCHAR(32)"`
	Validbtime int    `xorm:"not null default 0 INT(12)"`
	Validetime int    `xorm:"not null default 0 INT(12)"`
	InsertTime int    `xorm:"not null default 0 index(key1) INT(12)"`
	Email      string `xorm:"not null default '' VARCHAR(32)"`
	Mobile     string `xorm:"not null default '' VARCHAR(12)"`
	Location   string `xorm:"not null default '' VARCHAR(128)"`
	Memo       string `xorm:"not null default '' VARCHAR(1024)"`
}

type TWalletRecord struct {
	Id           int64  `xorm:"pk autoincr BIGINT(64)"`
	Uid          int64  `xorm:"not null index(key1) BIGINT(64)"`
	Channel      int    `xorm:"TINYINT(4)"`
	RequestOrder string `xorm:"not null default '' VARCHAR(32)"`
	Type         int    `xorm:"TINYINT(1)"`
	Amount       int    `xorm:"not null INT(11)"`
	Balance      int    `xorm:"not null INT(11)"`
	InsertTime   int64  `xorm:"not null default 0 index(key1) BIGINT(11)"`
	Message      string `xorm:"not null default '' VARCHAR(256)"`
}
